/*
 *
num = 2000, name = lihua, score = 100.000000
num = 1000, name = zhangsan, score = 99.000000
num = 1001, name = lisi, score = 89.000000
num = 1003, name = zhouwu, score = 79.000000
 *
 */
#include<stdio.h>
#include<string.h>

struct student
{
	int num;
	char name[16];
	float score;
};

int main(){
	struct student stu[3] = {{1000, "zhangsan", 99}, {1001, "lisi", 89}, {1003, "zhouwu", 79}};
	struct student stu1[3];

	stu1[0].num = 2000;
	strcpy(stu1[0].name, "lihua");
	stu1[0].score = 100;
	printf("num = %d, name = %s, score = %f\n", stu1[0].num, stu1[0].name, stu1[0].score);

	for(int i = 0; i < 3; i++){
		printf("num = %d, name = %s, score = %f\n", stu[i].num, stu[i].name, stu[i].score);
	}
}
